﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using MAT.Model;

namespace MAT
{
    public partial class frmManageCategory : Form
    {
        Controllers.ctrManageCategory _ctrManageCategory = new Controllers.ctrManageCategory();
        public frmManageCategory()
        {
            InitializeComponent();
            _ctrManageCategory.FrmManageCategory = this;
        }

        private void frmManageCategory_Load(object sender, EventArgs e)
        {
            _ctrManageCategory.frmManageCategory_Load();
        }

        private void btnReset_Click(object sender, EventArgs e)
        {
            _ctrManageCategory.btnReset_Click();
        }

        private void btnAdd_Click(object sender, EventArgs e)
        {
            _ctrManageCategory.btnAdd_Click();
        }

        private void btnDelete_Click(object sender, EventArgs e)
        {
            _ctrManageCategory.btnDelete_Click();
        }

        private void btnEdit_Click(object sender, EventArgs e)
        {
            _ctrManageCategory.btnEdit_Click();
        }

        private void btnClose_Click(object sender, EventArgs e)
        {
            _ctrManageCategory.btnClose_Click();
        }

        private void cmbCategoryName_SelectedIndexChanged(object sender, EventArgs e)
        {
            _ctrManageCategory.cmbCategoryName_SelectedIndexChanged();
        }

        private void txtCategoryName_KeyDown(object sender, KeyEventArgs e)
        {
            _ctrManageCategory.txtCategoryName_KeyDown(e);
        }
    }
}
